<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Modify StudentOutcome</title>
    </h:head>
    <h:body>
        <h:form>
            <h:dataTable value="#{studentOutcomesBean.studentOutcomes}" var="so">
                <h:column>
                    <f:facet name="header">Identifier</f:facet>
                    <h:inputText value="#{so.identifier}" disabled="true" size="20"  />
                </h:column>
                <h:column>
                    <f:facet name="header">Sequence Number</f:facet>
                    <h:inputText value="#{so.sequenceNumber}" size="20"  />
                </h:column>
                <h:column>
                    <f:facet name="header">Short Name</f:facet>
                    <h:inputText value="#{so.shortName}" size="20"  />
                </h:column>
                <h:column>
                    <f:facet name="header">Description</f:facet>
                    <h:inputText value="#{so.description}" size="20"  />
                </h:column>
                <h:column>    	    
                    <f:facet name="header">Target Direct Assessment Attainment Level </f:facet>  
                    <h:selectOneMenu value="#{so.currentSemesterTDAA}">
                        <f:selectItem itemValue="" itemLabel="select"/> 
                        <f:selectItems value="#{so.targetDirectAssessmentAttainmentLevel}"/>     
                    </h:selectOneMenu>
                    <h:form>
                        <h:inputText value="#{so.currentDirectAssessment}">
                            <f:convertNumber integerOnly="true"></f:convertNumber>
                        </h:inputText>
                        <h:commandButton id="attainment" value="Save" actionListener="#{pEOBean.saveAttainment}"/>
                    </h:form>
                </h:column>
                <h:column>    	    
                    <f:facet name="header">Target Attainment Levels</f:facet>  
                    <h:selectOneMenu value="#{so.currentSemesterTSAA}">
                        <f:selectItem itemValue="" itemLabel="select"/> 
                        <f:selectItems value="#{so.targetSurveyAssessmentAttainmentLevel}"/>     
                    </h:selectOneMenu>
                    <h:form>
                        <h:inputText value="#{so.currentSurveyAssessment}">
                            <f:convertNumber integerOnly="true"></f:convertNumber>
                        </h:inputText>
                        <h:commandButton id="attainment" value="Save" actionListener="#{pEOBean.saveAttainment}"/>
                    </h:form>
                </h:column>
            </h:dataTable>
            <p>
                <h:commandButton id='submit' value="Save" action="#{studentOutcomesBean.saveSO()}" />
            </p>   
        </h:form>
    </h:body>
</html>

